package cn.gson.oasys.service.impl;

import cn.gson.oasys.mapper.AoaMailnumberMapper;
import cn.gson.oasys.pojo.AoaMailnumber;
import cn.gson.oasys.service.AoaMailnumberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zhangyu on 2020/11/30.
 */
@Service
public class AoaMailnumberImpl implements AoaMailnumberService{
    @Resource
    private AoaMailnumberMapper aoaMailnumberMapper;

    @Override
    //邮件管理-->账号管理主页面--zy 1
    public List<AoaMailnumber> getAllAoaMailnumber() {
        return aoaMailnumberMapper.getAllAoaMailnumber();
    }

    @Override
    //邮件管理-->根据账号名查询--zy
    public List<AoaMailnumber> getaoaMailnumber(String mailUserName) {
        return aoaMailnumberMapper.getaoaMailnumber(mailUserName);
    }

    @Override
    //邮件管理-->账号管理-->新增--zy
    public String insertAoaMailnumber(AoaMailnumber aoaMailnumber) {
        return aoaMailnumberMapper.insertAoaMailnumbe(aoaMailnumber);
    }

    @Override
    //邮件管理-->账号管理-->删除--zy
    public int deletAoaMailnumber(int mailNumUserId) {
        return aoaMailnumberMapper.deleteAoaMailnumber(mailNumUserId);
    }

    @Override
    //邮件管理-->账号管理-->修改--zy
    public int updateAoaMailnumber(AoaMailnumber aoaMailnumber) {
        return aoaMailnumberMapper.updateAoaMailnumber(aoaMailnumber);
    }
}
